﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="products-list.ascx.cs" Inherits="usercontrols_products_list" %>
<%@ Register Assembly="Telerik.Web.UI, Version=2011.2.915.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4"
    Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<div class="warpper_block">
    <div class="title_block">
        <asp:Label ID="lblStatusProduct" runat="server" Text=""></asp:Label></div>
    <div class="div-paging">
        <asp:Label ID="lblPaging1" runat="server" Text=""></asp:Label>
    </div>
    <asp:DataList ID="dtlProducts" RepeatColumns="4" runat="server" 
        onitemcommand="dtlProducts_ItemCommand">
        <ItemTemplate>
            <div class="products">
                <div class="lb_hot">
                    <%#ImageStatus(Eval("StatusImage"))%>
                </div>
                <!--end #lb_hot-->
                <div class="image">
                    <%#LinkImage(Eval("ImageURL"), Eval("ProductID"), Eval("Name"),Eval("Code"), Eval("CategoryID"), Eval("Description"))%>
                </div>
                <div class="name_sp">
                    <%#LinkHeader(Eval("ProductID"), Eval("Name"), Eval("CategoryID"))%>
                </div>
                <!--end #name_sp-->
                <div class="code-price">
                    <div class="code">
                        Item # : <font color="#2D7BBE">
                            <%#Eval("Code")+""%></font>
                    </div>
                    <%#ImageStock(Eval("Quality"))%>
                    <br />
                </div>
                <center class="rating">
                    <asp:Panel ID="pnRating" runat="server" Visible='<%#IsRating(Eval("ReviewRating")) %>'>
                        <telerik:RadRating ID="radRating" runat="server" ItemCount="5" Value='<%#Convert.ToDouble(Eval("Rating")) %>'
                            Precision="Half" Orientation="Horizontal" SelectionMode="Continuous" ReadOnly="true" />
                        (Review:
                        <%#Eval("ReviewRating")+"" %>
                        )
                    </asp:Panel>
                </center>
                <div class="warpper_price_add">
                    <%# Price(Eval("Price"), Eval("IsMapPrice"), Eval("Discount"))%>
                    <!--end #price-->
                    <div class="add-cart">
                        <asp:TextBox ID="txtQuantity" CssClass="textbox_q" onkeyup="AcceptDigits(this)" Text="1"
                            MaxLength="3" runat="server"></asp:TextBox>
                        <asp:ImageButton ID="btnAddToCart" ImageUrl="~/images/bt_addcart.jpg" runat="server" CommandName="AddCart" CommandArgument='<%#Eval("ProductID") %>' />
                    </div>
                </div>
                <!--end #warpper_price_add-->
            </div>
        </ItemTemplate>
    </asp:DataList>
    <div class="div-paging">
        <asp:Label ID="lblPaging" runat="server" Text=""></asp:Label>
    </div>
    <!--end #title_block-->
</div>